Delete the assets in /ext/{directories}
in the modules
database associated with the REST API instance.
Whether or not any assets exist under the given directory, MarkLogic Server returns status code 204 (Deleted).
rest-admin
role, or the
following privileges:
http://marklogic.com/xdmp/privileges/rest-admin
http://marklogic.com/xdmp/privileges/rest-reader
http://marklogic.com/xdmp/privileges/rest-writer
{directories}
must be one or more database directory path
steps. For example: /your/domain/. Use the same directory path
as was used to install the asset with
GET /v1/ext/{directories}/{asset}
.
For more details, see Managing Dependent Libraries and Other Assets in the REST Application Developer's Guide.
$ curl --anyauth --user user:password -i -X DELETE \ 'http://localhost:8000/v1/ext/my/example/' ==> All assets installed in /ext/my/example/ in the modules database are deleted. MarkLogic Server responds with output similar to the following: HTTP/1.1 204 Deleted Server: MarkLogic Content-Length: 0 Connection: Keep-Alive Keep-Alive: timeout=5